#!/bin/bash
set -e

if [ "$1" = "upgrade" ] ; then
    echo "upgrade"
elif [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then
    echo "remove"

    systemctl stop starkylin_connectivity.service
    systemctl daemon-reload
fi